local danshou = fk.CreateSkill({
    name = "sj6__danshou",
    tags = {Skill.Compulsory},
  })
  
  Fk:loadTranslationTable{
    ["sj6__danshou"] = "胆守",
    [":sj6__danshou"] = "<b>锁定技</b>，你将最后失去的手牌当【决斗】使用。",
    
    ["$sj6__danshou1"] = "到此为止了！",
    ["$sj6__danshou2"] = "以胆为守，扼敌咽喉！",
  }

  danshou:addEffect(fk.AfterCardsMove, {
    can_trigger = function(self, event, target, player, data)
      if not (player:hasSkill(danshou.name) and player:isKongcheng()) then return end
      for _, move in ipairs(data) do
        return move.from == player and table.find(move.moveInfo,function (info)
          return info.fromArea == Card.PlayerHand
        end)
      end
    end,
    on_cost = function (self, event, target, player, data)
      local room = player.room
      local cards = {}
      for _, move in ipairs(data) do
        if move.from == player then
          cards = table.map(table.filter(move.moveInfo,function (info)
          return info.fromArea == Card.PlayerHand
          end),function (info) return info.cardId end)
        end
      end
      local use = room:askToUseVirtualCard(player,{
        name = "duel",
        subcards = cards,
        skill_name = danshou.name,
        cancelable = false,
        skip = true,
      })
      event:setCostData(self,{use = use})
      return use
    end,
    on_use = function(self, event, target, player, data)
      player.room:useCard(event:getCostData(self).use)
    end,
  })

  return danshou